﻿using Castle.ActiveRecord;

namespace NoMiddleman.Core.Domain
{
    [ActiveRecord(DiscriminatorColumn = "Type", DiscriminatorType = "String", DiscriminatorValue = "RealEstate")]
    public class RealEstate
    {
        [PrimaryKey]
        public int Id { get; protected set; }

        [BelongsTo(Type = typeof(Address))]
        public Address Address { get; set; }

        [Property]
        public decimal Surface { get; set; }

        [Property(Length = 2000)]
        public string Description { get; set; }
    }
}
